<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FolderView.ascx.cs" Inherits="SubversionReports.Web.Controls.FolderView" %>

<%@ Register TagPrefix="uc" TagName="BreadCrumbler" Src="~/Controls/BreadCrumbler.ascx" %>
<%@ Register TagPrefix="uc" TagName="HistoryView" Src="~/Controls/HistoryView.ascx" %>

<h2><uc:BreadCrumbler runat="server" ID="BreadCrumbler1" /></h2>

<uc:HistoryView runat="server" ID="HistoryView1" />

<asp:Repeater runat="server" ID="ChildPathRepeater">
    <HeaderTemplate><ul></HeaderTemplate>
    <ItemTemplate>
        <li style='list-style-image: url(<%# GetIconUrl((bool)DataBinder.Eval(Container.DataItem, "IsFolder")) %>); list-style-position: inside;<%# string.Format("{0}", DataBinder.Eval(Container.DataItem, "LastRevisionType").ToString().Equals("Deleted") ? " text-decoration: line-through;" : string.Empty) %>'>
            <asp:HyperLink runat="server" Text='<%# GetTrimmedPath((string)DataBinder.Eval(Container.DataItem, "FileName")) %>' NavigateUrl='<%# GetNavigateUrl(Container.DataItem) %>' />
            - <em><asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Description") %>' /></em>
        </li>
    </ItemTemplate>
    <FooterTemplate></ul></FooterTemplate>
</asp:Repeater>